<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName()
			+ ":" + request.getServerPort() + request.getContextPath();
%>
<jsp:include page="/WEB-INF/page/auth/_header.jsp"></jsp:include>
<body>
	<jsp:include page="/WEB-INF/page/auth/header.jsp"></jsp:include>
	<div id="middle">
		<jsp:include page="/WEB-INF/page/auth/menu.jsp"></jsp:include>
		<div id="right">
		    <div id="student_querytb">
		        <form id="student_queryForm" class="m10">
		           	<span>${term.termName}</span>
		            <select class="form-control1" name="grade" id="grade" onchange="searchClazz('student_query',this.value)"></select>
		            <select class="form-control1" name="clazz" id="clazz"></select>
		                             学生姓名：
		            <input class="form-control1" type="text" name="studentName" id="studentName">
					<input type="hidden" id="schoolId" name="schoolId" value=""/>
		            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('student_query')">查询</a>
		            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('student_query')">重置</a><br/>
		        	
		        </form>
		    </div>
		    <table id="student_querydg">
		        <thead frozen="true">
		            <tr>
		                <th data-options="field:'id',checkbox:false">ID</th>
		                <th data-options="field:'grade',title:'年级名称',formatter:function(value,row,index){
		                    return row.gradeName;
		                }"></th>
		                <th data-options="field:'clazz',title:'班号'"></th>
		                <th data-options="field:'studentNum',title:'学号'"></th>
		                <th data-options="field:'studyNo',title:'学籍号'"></th>
		                <th data-options="field:'name',title:'姓名'"></th>
		            </tr>
		        </thead>
		        <thead>
		            <tr>
		                <th data-options="field:'sex',title:'性别'"></th>
		                <th data-options="field:'idNoType',title:'身份证类型'"></th>
		                <th data-options="field:'idNo',title:'身份证号'"></th>
		                <th data-options="field:'birthday',title:'生日',
		                formatter:function(value,row,index) {
		                	return getTime(value,'yyyy/MM/dd');
		                }"></th>
		                <th data-options="field:'nation',title:'民族'"></th>
		                <th data-options="field:'nationality',title:'国籍'"></th>
		                <th data-options="field:'homeNature',title:'户口性质'"></th>
		                <th data-options="field:'placeType',title:'户籍类别'"></th>
		                <th data-options="field:'placeSSQ',title:'户籍省市区'"></th>
		                <th data-options="field:'placeDetail',title:'户籍所在详细地址'"></th>
		                <th data-options="field:'homeAddr',title:'现住地址'"></th>
		                <th data-options="field:'onlyChild',title:'是否独生子女'"></th>
		                <th data-options="field:'studentPlaceType',title:'户籍类别'"></th>
		                <th data-options="field:'nativePlace',title:'籍贯'"></th>
		                <th data-options="field:'birthAddr',title:'出生地'"></th>
		                <th data-options="field:'fatherName',title:'爸爸姓名'"></th>
		                <th data-options="field:'fatherMobile',title:'爸爸电话'"></th>
		                <th data-options="field:'fatherIsGuardian',title:'爸爸是否监护人'"></th>
		                <th data-options="field:'fatherPlace',title:'爸爸户口所在地'"></th>
		                <th data-options="field:'fatherHomeAddr',title:'妈妈现住址'"></th>
		                <th data-options="field:'motherName',title:'妈妈姓名'"></th>
		                <th data-options="field:'motherMobile',title:'妈妈电话'"></th>
		                <th data-options="field:'motherIsGuardian',title:'妈妈是否监护人'"></th>
		                <th data-options="field:'motherPlace',title:'妈妈户口所在地'"></th>
		                <th data-options="field:'motherHomeAddr',title:'妈妈现住址'"></th>
		            </tr>
		        </thead>
		    </table>
		</div>
	</div>
	<jsp:include page="/WEB-INF/page/auth/_footer.jsp"/>
	<script type="text/javascript">
        $(function(){
            var url = basePath + "/sys/student/query";
            initSchoolIdInputValue();
            initDatagrid("student_query", url);
            initGrade("student_query");
            initSubject("student_query");
        });
		function initSchoolIdInputValue() {
			var v1 = $("#userSchoolId").val();
			$("#schoolId").val(v1);
		}

	</script>
</body>
</html>